package com.friday.dao;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderDao {

    JSONObject getOrderById(int id);

    JSONArray getAllOrder();

    JSONArray getOrderDtlByOId(int id);

    JSONArray getAgentOrder(int id);

    JSONArray getOrderForInvoice();

    int delOrderById(int id);

    int delOrderDtlByOId(int order_id);

    int addOrder(JSONObject order);

    int addOrderDtl(JSONObject orderdtl);

    int editOrder(JSONObject order);

    int changeStatus(int order_id,String status);

}
